package cn.hxzy.service.impl;

import cn.hxzy.client.UserClassClient;
import cn.hxzy.domain.Course;
import cn.hxzy.domain.Direction;
import cn.hxzy.domain.Professional;
import cn.hxzy.domain.vo.ChpSecListVo;
import cn.hxzy.domain.vo.CourseListVo;
import cn.hxzy.domain.vo.CourseVo;
import cn.hxzy.mapper.CourseMapper;
import cn.hxzy.mapper.DirectionMapper;
import cn.hxzy.mapper.ProfessionalMapper;
import cn.hxzy.mapper.VideoMapper;
import cn.hxzy.service.CourseService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author niuyi
 * @since 2024-06-22
 */
@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements CourseService {
    @Autowired
    private CourseMapper courseMapper;
    @Autowired
    private DirectionMapper directionMapper;
    @Autowired
    private ProfessionalMapper professionalMapper;
    @Autowired
    private VideoMapper videoMapper;

//    @Autowired
//    private TaskMengerClient taskMengerClient;

    @Override
    public List<Course> selectAll(Integer schoolId) {
        return courseMapper.selectList(new QueryWrapper<Course>().eq("school_id", schoolId));
    }

    @Override
    public List<CourseListVo> getCourseList(int schoolId) {
       List<CourseListVo> listVos=new ArrayList<>();
        //此学校的方向列表
        List<Direction> directions = directionMapper.selectList(new QueryWrapper<Direction>().eq("school_id", schoolId));
        for (int i = 0; i < directions.size(); i++) {
            CourseListVo courseListVo = new CourseListVo();
            List<CourseVo> list=new ArrayList<>();
            Integer directionId = directions.get(i).getDirectionId();
            //查到方向名称
            Direction direction = directionMapper.selectById(directionId);
            //查到对应的课程列表
            List<Course> courses = courseMapper.selectListByDid(directionId);
          //放到Vo课程中
            for (int i1 = 0; i1 < courses.size(); i1++) {
                CourseVo courseVo = new CourseVo();
                List<String> arrs=new ArrayList<>();
                //字符串转换成数组
                    String directionId1 = courses.get(i1).getDirectionId();
                    String[] arr = directionId1.split(",");
                    for (int i2 = 0; i2 < arr.length; i2++) {
                        Direction direction1 = directionMapper.selectById(Integer.parseInt(arr[i2]));
                        //一个一个添加值
                        arrs.add(direction1.getDirectionName());
                    }

                courseVo.setDirectionName(arrs);
                Professional professional = professionalMapper.selectById(courses.get(i1).getProfessionalId());
                courseVo.setProfessionalName(professional.getProfessionalName());
                courseVo.setCourseId(courses.get(i1).getCourseId());
                courseVo.setCourseInfo(courses.get(i1).getCourseInfo());
                courseVo.setCourseName(courses.get(i1).getCourseName());
                courseVo.setCreateTime(courses.get(i1).getCreateTime());
                courseVo.setCreateUser(courses.get(i1).getCreateUser());
                courseVo.setLessonHours(courses.get(i1).getLessonHours());
                courseVo.setUpdateTime(courses.get(i1).getUpdateTime());
                courseVo.setUpdateUser(courses.get(i1).getUpdateUser());
                //查全部视频个数
                double count = videoMapper.selectCount(courses.get(i1).getCourseId());
                //查学习完的个数
                double num =videoMapper.selectNum(courses.get(i1).getCourseId());
                double result=num/count*100;
                int bfb= (int) result;
                if(num==0){
                    courseVo.setCourseStatus(0);
                }else {
                    courseVo.setCourseStatus(bfb);
                }
                list.add(courseVo);
            }
            courseListVo.setDirection(direction);
            courseListVo.setList(list);
            listVos.add(courseListVo);
        }
            return listVos;
    }

    @Override
    public List<CourseListVo> getCourseListByDirectionId(Integer dId,Integer pId,String courseName) {
        //只有方向条件
        if(dId!=null && pId==null&& courseName==null){
            //声明集合
            List<CourseListVo> listVos=new ArrayList<>();
            //声明对象
            CourseListVo courseListVo = new CourseListVo();
            //课程集合
            List<CourseVo> list=new ArrayList<>();
            //查方向
            Direction direction = directionMapper.selectById(dId);
            //所包含did的课程
            List<Course> courses = courseMapper.selectListByDid(dId);
            for (int i1 = 0; i1 < courses.size(); i1++) {
                CourseVo courseVo = new CourseVo();
                List<String> arrs=new ArrayList<>();
                //字符串转换成数组
                String directionId1 = courses.get(i1).getDirectionId();
                String[] arr = directionId1.split(",");
                for (int i2 = 0; i2 < arr.length; i2++) {
                    Direction direction1 = directionMapper.selectById(Integer.parseInt(arr[i2]));
                    //一个一个赋值
                    arrs.add(direction1.getDirectionName());
                }
                courseVo.setDirectionName(arrs);
                Professional professional = professionalMapper.selectById(courses.get(i1).getProfessionalId());
                courseVo.setProfessionalName(professional.getProfessionalName());
                courseVo.setCourseId(courses.get(i1).getCourseId());
                courseVo.setCourseInfo(courses.get(i1).getCourseInfo());
                courseVo.setCourseName(courses.get(i1).getCourseName());
                courseVo.setCreateTime(courses.get(i1).getCreateTime());
                courseVo.setCreateUser(courses.get(i1).getCreateUser());
                courseVo.setLessonHours(courses.get(i1).getLessonHours());
                courseVo.setUpdateTime(courses.get(i1).getUpdateTime());
                courseVo.setUpdateUser(courses.get(i1).getUpdateUser());
                //查全部视频个数
                double count = videoMapper.selectCount(courses.get(i1).getCourseId());
                //查学习完的个数
                double num =videoMapper.selectNum(courses.get(i1).getCourseId());
                double result=num/count*100;
                int bfb= (int) result;
                if(num==0){
                    courseVo.setCourseStatus(0);
                }else {
                    courseVo.setCourseStatus(bfb);
                }
                list.add(courseVo);
            }
            courseListVo.setDirection(direction);
            courseListVo.setList(list);
            listVos.add(courseListVo);
            return listVos;
        }
        //只有类型条件
        if(dId==null && pId!=null&& courseName==null){
            List<Course> courses = courseMapper.selectListByPid(pId);
            if (courses.size()>0) {
                List<CourseListVo> listVos = new ArrayList<>();
                List<Integer> arrs = new ArrayList<>();
                //得到所有的方向
                for (int i = 0; i < courses.size(); i++) {
                    String arr[] = courses.get(i).getDirectionId().split(",");
                    for (int i1 = 0; i1 < arr.length; i1++) {
                        int i2 = Integer.parseInt(arr[i1]);
                        arrs.add(i2);
                    }
                }
                //去重
                for (int i = 0; i < arrs.size(); i++) {
                    for (int j = 0; j < arrs.size(); j++) {
                        if (i != j && arrs.get(i) == arrs.get(j)) {
                            arrs.remove(arrs.get(j));
                        }
                    }
                }
                for (int i = 0; i < arrs.size(); i++) {
                    //声明对象
                    CourseListVo courseListVo = new CourseListVo();
                    Direction direction = directionMapper.selectById(arrs.get(i));
                    //课程集合
                    List<CourseVo> list = new ArrayList<>();
                    //查到的课程列表根据类型ID和方向ID
                    List<Course> courses1 = courseMapper.selectListByPidAndDid(pId, direction.getDirectionId());
                    for (int i1 = 0; i1 < courses1.size(); i1++) {
                        CourseVo courseVo = new CourseVo();
                        List<String> arrs2=new ArrayList<>();
                        //字符串转换成数组
                        String directionId1 = courses1.get(i1).getDirectionId();
                        String[] arr = directionId1.split(",");
                        for (int i2 = 0; i2 < arr.length; i2++) {
                            Direction direction1 = directionMapper.selectById(Integer.parseInt(arr[i2]));
                            //一个一个赋值
                            arrs2.add(direction1.getDirectionName());
                        }
                        courseVo.setDirectionName(arrs2);
                        Professional professional = professionalMapper.selectById(courses1.get(i1).getProfessionalId());
                        courseVo.setProfessionalName(professional.getProfessionalName());
                        courseVo.setCourseId(courses1.get(i1).getCourseId());
                        courseVo.setCourseInfo(courses1.get(i1).getCourseInfo());
                        courseVo.setCourseName(courses1.get(i1).getCourseName());
                        courseVo.setCreateTime(courses1.get(i1).getCreateTime());
                        courseVo.setCreateUser(courses1.get(i1).getCreateUser());
                        courseVo.setLessonHours(courses1.get(i1).getLessonHours());
                        courseVo.setUpdateTime(courses1.get(i1).getUpdateTime());
                        courseVo.setUpdateUser(courses1.get(i1).getUpdateUser());
                        //查全部视频个数
                        double count = videoMapper.selectCount(courses1.get(i1).getCourseId());
                        //查学习完的个数
                        double num =videoMapper.selectNum(courses1.get(i1).getCourseId());
                        double result=num/count*100;
                        int bfb= (int) result;
                        if(num==0){
                            courseVo.setCourseStatus(0);
                        }else {
                            courseVo.setCourseStatus(bfb);
                        }
                        list.add(courseVo);
                    }
                    courseListVo.setDirection(direction);
                    courseListVo.setList(list);
                    listVos.add(courseListVo);
                }
                return listVos;
            }
            return null;
        }
        //只有name条件
        if(dId==null&& pId==null&& courseName!=null){
            return  this.getCourseListByName(courseName);
        }
        //类型和专业条件
        if (pId!=null && dId!=null&& courseName==null ){
            //查到的方向
            Direction direction = directionMapper.selectById(dId);
            List<Course> courses = courseMapper.selectListByPidAndDid(pId, dId);
            System.out.println("p"+pId);
            System.out.println("d"+dId);
            System.out.println(courses);
            if (courses.size()>0){
                //声明返回集合
                List<CourseListVo> listVos = new ArrayList<>();
                List<CourseVo> list=new ArrayList<>();
                CourseListVo courseListVo = new CourseListVo();
                //放到Vo课程中
                for (int i1 = 0; i1 < courses.size(); i1++) {
                    CourseVo courseVo = new CourseVo();
                    List<String> arrs=new ArrayList<>();
                    //字符串转换成数组
                    String directionId1 = courses.get(i1).getDirectionId();
                    String[] arr = directionId1.split(",");
                    for (int i2 = 0; i2 < arr.length; i2++) {
                        Direction direction1 = directionMapper.selectById(Integer.parseInt(arr[i2]));
                        //一个一个添加值
                        arrs.add(direction1.getDirectionName());
                    }
                    courseVo.setDirectionName(arrs);
                    Professional professional = professionalMapper.selectById(courses.get(i1).getProfessionalId());
                    courseVo.setProfessionalName(professional.getProfessionalName());
                    courseVo.setCourseId(courses.get(i1).getCourseId());
                    courseVo.setCourseInfo(courses.get(i1).getCourseInfo());
                    courseVo.setCourseName(courses.get(i1).getCourseName());
                    courseVo.setCreateTime(courses.get(i1).getCreateTime());
                    courseVo.setCreateUser(courses.get(i1).getCreateUser());
                    courseVo.setLessonHours(courses.get(i1).getLessonHours());
                    courseVo.setUpdateTime(courses.get(i1).getUpdateTime());
                    courseVo.setUpdateUser(courses.get(i1).getUpdateUser());
                    //查全部视频个数
                    double count = videoMapper.selectCount(courses.get(i1).getCourseId());
                    //查学习完的个数
                    double num =videoMapper.selectNum(courses.get(i1).getCourseId());
                    double result=num/count*100;
                    int bfb= (int) result;
                    if(num==0){
                        courseVo.setCourseStatus(0);
                    }else {
                        courseVo.setCourseStatus(bfb);
                    }
                    list.add(courseVo);
                }
                courseListVo.setDirection(direction);
                courseListVo.setList(list);
                listVos.add(courseListVo);
                return listVos;
            }
                return null;
            }
        //方向和name条件
        if (pId==null && dId!=null&& courseName!=null){
            //声明集合
            List<CourseListVo> listVos=new ArrayList<>();
            //声明对象
            CourseListVo courseListVo = new CourseListVo();
            //课程集合
            List<CourseVo> list=new ArrayList<>();
            //查方向
            Direction direction = directionMapper.selectById(dId);
            //所包含did的课程和name的课程
            List<Course> courses = courseMapper.selectListByNameAndDid(courseName,dId);
            if (courses.size()>0){
                for (int i1 = 0; i1 < courses.size(); i1++) {
                    CourseVo courseVo = new CourseVo();
                    List<String> arrs=new ArrayList<>();
                    //字符串转换成数组
                    String directionId1 = courses.get(i1).getDirectionId();
                    String[] arr = directionId1.split(",");
                    for (int i2 = 0; i2 < arr.length; i2++) {
                        Direction direction1 = directionMapper.selectById(Integer.parseInt(arr[i2]));
                        //一个一个赋值
                        arrs.add(direction1.getDirectionName());
                    }
                    courseVo.setDirectionName(arrs);
                    Professional professional = professionalMapper.selectById(courses.get(i1).getProfessionalId());
                    courseVo.setProfessionalName(professional.getProfessionalName());
                    courseVo.setCourseId(courses.get(i1).getCourseId());
                    courseVo.setCourseInfo(courses.get(i1).getCourseInfo());
                    courseVo.setCourseName(courses.get(i1).getCourseName());
                    courseVo.setCreateTime(courses.get(i1).getCreateTime());
                    courseVo.setCreateUser(courses.get(i1).getCreateUser());
                    courseVo.setLessonHours(courses.get(i1).getLessonHours());
                    courseVo.setUpdateTime(courses.get(i1).getUpdateTime());
                    courseVo.setUpdateUser(courses.get(i1).getUpdateUser());
                    //查全部视频个数
                    double count = videoMapper.selectCount(courses.get(i1).getCourseId());
                    //查学习完的个数
                    double num =videoMapper.selectNum(courses.get(i1).getCourseId());
                    double result=num/count*100;
                    int bfb= (int) result;
                    if(num==0){
                        courseVo.setCourseStatus(0);
                    }else {
                        courseVo.setCourseStatus(bfb);
                    }
                    list.add(courseVo);
                }
                courseListVo.setDirection(direction);
                courseListVo.setList(list);
                listVos.add(courseListVo);
                return listVos;
            }
            return null;
        }
        //类型和name条件
        if (pId!=null && dId==null&& courseName!=null){
            //查到所有符合条件的课程
            List<Course> courses = courseMapper.selectListByNameAndPid(courseName,pId);
            if (courses.size()>0){
                List<CourseListVo> listVos = new ArrayList<>();
                List<Integer> arrs = new ArrayList<>();
                //得到所有的方向
                for (int i = 0; i < courses.size(); i++) {
                    String arr[] = courses.get(i).getDirectionId().split(",");
                    for (int i1 = 0; i1 < arr.length; i1++) {
                        int i2 = Integer.parseInt(arr[i1]);
                        arrs.add(i2);
                    }
                }
                //去重
                for (int i = 0; i < arrs.size(); i++) {
                    for (int j = 0; j < arrs.size(); j++) {
                        if (i != j && arrs.get(i) == arrs.get(j)) {
                            arrs.remove(arrs.get(j));
                        }
                    }
                }
                for (int i = 0; i < arrs.size(); i++) {
                    //声明对象
                    CourseListVo courseListVo = new CourseListVo();
                    Direction direction = directionMapper.selectById(arrs.get(i));
                    //课程集合
                    List<CourseVo> list = new ArrayList<>();
                    //查到的课程列表根据类型ID和方向ID和名字查询
                    List<Course> courses1 = courseMapper.selectListByNameAndPidAndDid(courseName, pId,arrs.get(i));
                    System.out.println(courses1);
                    for (int i1 = 0; i1 < courses1.size(); i1++) {
                        CourseVo courseVo = new CourseVo();
                        List<String> arrs2=new ArrayList<>();
                        //字符串转换成数组
                        String directionId1 = courses1.get(i1).getDirectionId();
                        String[] arr = directionId1.split(",");
                        for (int i2 = 0; i2 < arr.length; i2++) {
                            Direction direction1 = directionMapper.selectById(Integer.parseInt(arr[i2]));
                            //一个一个赋值
                            arrs2.add(direction1.getDirectionName());
                        }
                        courseVo.setDirectionName(arrs2);
                        Professional professional = professionalMapper.selectById(courses1.get(i1).getProfessionalId());
                        courseVo.setProfessionalName(professional.getProfessionalName());
                        courseVo.setCourseId(courses1.get(i1).getCourseId());
                        courseVo.setCourseInfo(courses1.get(i1).getCourseInfo());
                        courseVo.setCourseName(courses1.get(i1).getCourseName());
                        courseVo.setCreateTime(courses1.get(i1).getCreateTime());
                        courseVo.setCreateUser(courses1.get(i1).getCreateUser());
                        courseVo.setLessonHours(courses1.get(i1).getLessonHours());
                        courseVo.setUpdateTime(courses1.get(i1).getUpdateTime());
                        courseVo.setUpdateUser(courses1.get(i1).getUpdateUser());
                        //查全部视频个数
                        double count = videoMapper.selectCount(courses1.get(i1).getCourseId());
                        //查学习完的个数
                        double num =videoMapper.selectNum(courses1.get(i1).getCourseId());
                        double result=count/num*100;
                        int bfb= (int) result;
                        if(num==0){
                            courseVo.setCourseStatus(0);
                        }else {
                            courseVo.setCourseStatus(bfb);
                        }
                        list.add(courseVo);
                    }
                    courseListVo.setDirection(direction);
                    courseListVo.setList(list);
                    listVos.add(courseListVo);
                }
                return listVos;
            }

            return null;
        }
        //三个条件都有
        if (pId!=null && dId!=null&& courseName!=null) {
            List<Course> courses = courseMapper.selectListByNameAndPidAndDid(courseName, pId, dId);
            //方向
            Direction direction = directionMapper.selectById(dId);
            if (courses.size() > 0) {
                    //声明对象
                    CourseListVo courseListVo = new CourseListVo();
                    //课程集合
                    List<CourseVo> list = new ArrayList<>();
                List<CourseListVo> listVos=new ArrayList<>();
                    //查到的课程列表根据类型ID和方向ID和名字查询
                    List<Course> courses1 = courseMapper.selectListByNameAndPidAndDid(courseName, pId, dId);
                    System.out.println(courses1);
                    for (int i1 = 0; i1 < courses1.size(); i1++) {
                        CourseVo courseVo = new CourseVo();
                        List<String> arrs2 = new ArrayList<>();
                        //字符串转换成数组
                        String directionId1 = courses1.get(i1).getDirectionId();
                        String[] arr = directionId1.split(",");
                        for (int i2 = 0; i2 < arr.length; i2++) {
                            Direction direction1 = directionMapper.selectById(Integer.parseInt(arr[i2]));
                            //一个一个赋值
                            arrs2.add(direction1.getDirectionName());
                        }
                        courseVo.setDirectionName(arrs2);
                        Professional professional = professionalMapper.selectById(courses1.get(i1).getProfessionalId());
                        courseVo.setProfessionalName(professional.getProfessionalName());
                        courseVo.setCourseId(courses1.get(i1).getCourseId());
                        courseVo.setCourseInfo(courses1.get(i1).getCourseInfo());
                        courseVo.setCourseName(courses1.get(i1).getCourseName());
                        courseVo.setCreateTime(courses1.get(i1).getCreateTime());
                        courseVo.setCreateUser(courses1.get(i1).getCreateUser());
                        courseVo.setLessonHours(courses1.get(i1).getLessonHours());
                        courseVo.setUpdateTime(courses1.get(i1).getUpdateTime());
                        courseVo.setUpdateUser(courses1.get(i1).getUpdateUser());
                        //查全部视频个数
                        double count = videoMapper.selectCount(courses1.get(i1).getCourseId());
                        //查学习完的个数
                        double num =videoMapper.selectNum(courses1.get(i1).getCourseId());
                        double result=count/num*100;
                        int bfb= (int) result;
                        if(num==0){
                            courseVo.setCourseStatus(0);
                        }else {
                            courseVo.setCourseStatus(bfb);
                        }
                        list.add(courseVo);
                    }
                    courseListVo.setDirection(direction);
                    courseListVo.setList(list);
                     listVos.add(courseListVo);
                     return listVos;
            }
            return null;
        }
        //三个条件都没有
        if (pId==null && dId==null&& courseName==null){
            return this.getCourseList(1);
        }

            return null;
    }

    @Override
    public List<CourseListVo> getCourseListByName(String courseName) {
        List<Course> courses = courseMapper.selectListByName(courseName);
        if (courses.size()>0) {
            List<CourseListVo> listVos = new ArrayList<>();
            List<Integer> arrs = new ArrayList<>();
            //得到所有的方向
            for (int i = 0; i < courses.size(); i++) {
                String arr[] = courses.get(i).getDirectionId().split(",");
                for (int i1 = 0; i1 < arr.length; i1++) {
                    int i2 = Integer.parseInt(arr[i1]);
                    arrs.add(i2);
                }
            }
            //去重
            for (int i = 0; i < arrs.size(); i++) {
                for (int j = 0; j < arrs.size(); j++) {
                    if (i != j && arrs.get(i) == arrs.get(j)) {
                        arrs.remove(arrs.get(j));
                    }
                }
            }
            for (int i = 0; i < arrs.size(); i++) {
                //声明对象
                CourseListVo courseListVo = new CourseListVo();
                Direction direction = directionMapper.selectById(arrs.get(i));
                //课程集合
                List<CourseVo> list = new ArrayList<>();
                //查到的课程列表根据类型ID和方向ID
                List<Course> courses1 = courseMapper.selectListByNameAndDid(courseName, arrs.get(i));
                for (int i1 = 0; i1 < courses1.size(); i1++) {
                    CourseVo courseVo = new CourseVo();
                    List<String> arrs2=new ArrayList<>();
                    //字符串转换成数组
                    String directionId1 = courses1.get(i1).getDirectionId();
                    String[] arr = directionId1.split(",");
                    for (int i2 = 0; i2 < arr.length; i2++) {
                        Direction direction1 = directionMapper.selectById(Integer.parseInt(arr[i2]));
                        //一个一个赋值
                        arrs2.add(direction1.getDirectionName());
                    }
                    courseVo.setDirectionName(arrs2);
                    Professional professional = professionalMapper.selectById(courses1.get(i1).getProfessionalId());
                    courseVo.setProfessionalName(professional.getProfessionalName());
                    courseVo.setCourseId(courses1.get(i1).getCourseId());
                    courseVo.setCourseInfo(courses1.get(i1).getCourseInfo());
                    courseVo.setCourseName(courses1.get(i1).getCourseName());
                    courseVo.setCreateTime(courses1.get(i1).getCreateTime());
                    courseVo.setCreateUser(courses1.get(i1).getCreateUser());
                    courseVo.setLessonHours(courses1.get(i1).getLessonHours());
                    courseVo.setUpdateTime(courses.get(i1).getUpdateTime());
                    courseVo.setUpdateUser(courses.get(i1).getUpdateUser());
                    //查全部视频个数
                    double count = videoMapper.selectCount(courses1.get(i1).getCourseId());
                    //查学习完的个数
                    double num =videoMapper.selectNum(courses1.get(i1).getCourseId());
                    double result=count/num*100;
                    int bfb= (int) result;
                    if(num==0){
                        courseVo.setCourseStatus(0);
                    }else {
                        courseVo.setCourseStatus(bfb);
                    }
                    list.add(courseVo);
                }
                courseListVo.setDirection(direction);
                courseListVo.setList(list);
                listVos.add(courseListVo);
            }
            return listVos;
        }
        return null;
    }



    @Override
    public Course getCourseById(int courseId) {
        Course course = courseMapper.selectById(courseId);
        if (course != null){
            return course;
        }
        return null;
    }

    @Override
    public int saveCourse(Course course) {
       Course course1 =  courseMapper.getCourseByName(course.getCourseName());
        if (course1 == null){
            int i = courseMapper.insert(course);
            return i;
        }
        return -1;
    }

    @Override
    public int updateCourse(Course course) {
            int i = courseMapper.updateById(course);
            return i;
    }

    @Override
    public List<ChpSecListVo> ChpSecListVo(Integer courseId) {
        return null;
    }

//    @Override
//    public List<Integer> getCourseIdByClassId(Integer classId) {
//        List<Integer> coursesIdByClassId = taskMengerClient.getCoursesIdByClassId(classId);
//        return coursesIdByClassId;
//    }


}
